<!DOCTYPE html>
<!-- data -->
<script src="allData.js"></script>
<script type="text/javascript" src="../js/YTYanKPrivate.js"></script>
<link rel="stylesheet" href="../css/YTYanKPrivate.css" />
<!-- -->
<script src="../js/new_table.js"></script>

<html>
	<head>
		<meta charset="UTF-8">
		<title>js 模版</title>
	</head>
	<body>
		<div id="jscode"  style=" width: 100%; background-color: aquamarine;">
			
		</div>
	</body>
</html>


<script>
//window.onload = function() {
//console.log('----->');	
//};

	// 构建模版
	var html = '';
	var tr = '';
	for(var i = 0; i < tableData.length; i++){
		var td ='';
		for(var k = 0; k < tableData[i].length; k++) {
			let dic = tableData[i][k];
			if (dic.type == 1) {
				td += '<td colspan="' + dic.colspan + '"><div>' + dic.title + '-' + k + '</div></td>';
			}else if(dic.type == 2) {
				td += '<td colspan="' + dic.colspan + '"><div>' + '<i-input v-on:input="handleTabsAdd" :placeholder="entryStr"  v-model="entryStr" />' + '</div></td>';
			}
		}
		tr += '<tr>' + td + '</tr>';
	}
	html = '<div class="manInfo-x-s form-box-man" id="smjb-1" data-abc="zb-1"><table class="orm-box-man-nobo">' + tr + '</table></div>';

	var tableList = new tableList({
		_containerSign: '#jscode',
		_id: '1',
		_title: '标题1',
		_html_string: html
	});
   console.log('----->', tableList);
</script>